const { defineConfig } = require('@vue/cli-service')
let a = process.env.VUE_APP_BASE_API
console.log("环境变量：",a);
console.log("process =>",process.env.NODE_ENV);
const isProduction = process.env.VUE_APP_ENV === "pro"


module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, // 关闭eslink 校验
  
  publicPath: "./",
  devServer: { // 配置跨越
    proxy: {
      "/api": {
        target: "http://10.28.114.213:8000",
        changeOrigin: true,
        pathRewrite:{"/api":""}
      }
    }
  },
  
  outputDir: "dist", // 项目打包的根目录，默认是dist
  assetsDir: "", // 项目打包静态资源存放目录
  indexPath: "index.html",// 项目打包的index.html输出路径，默认"index.html"
  productionSourceMap: false, // 项目打包生成js的source map调试包，默认是true,生产部署设置为false
  
})
